import request from "@/utils/request";

export function getCommentAPI(articleID) {
  return request({
    url: '/comment/getComment/'+articleID,
    method: 'GET',
  })
}

export function addCommentAPI(data) {
    return request({
      url: '/comment/addComment',
      method: 'POST',
      data
    })
  }

  export function deleteCommentAPI(commentID) {
    return request({
      url: '/comment/deleteComment/'+commentID,
      method: 'DELETE',
    })
  }